<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
    <title></title>
        <!-- <script src="js/jquery-3.6.0.js"></script> -->
        <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
        <script>
			function sendGet () {
				$.ajax({
					type : 'get',
					url : 'method',
					success : function(body) {
						console.log(body);
					}
				});
			}

			function sendPost () {
				$.ajax({
					type : 'post',
					url : 'method',
					success : function(body) {
						console.log(body);
					}
				});
			}

			function sendDelete () {
				$.ajax({
					type : 'delete',
					url : 'method',
					success : function(body) {
						console.log(body);
					}
				});
			}
		</script>
    </head>
    <body>
        <input type="button" onclick="sendGet();" value="Get请求">
        <input type="button" onclick="sendPost();" value="Post请求" />
        <input type="button" onclick="sendDelete();" value="Delete请求" />
    </body>
</html>